package com.zenith.yasoo.setup;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.zui.base.BaseEntity;


@Entity
@Table(name="contact_mech")
@Inheritance(strategy = InheritanceType.JOINED)
public class ContactMech extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
	private ContactMechType contactMechType;
	private String infoString;

	/*------------------------------
	 * getters and annotations
	 --------------------------------*/
	@ManyToOne
	@JoinColumn(name="contactMechTypeCode")
	public ContactMechType getContactMechType() {return contactMechType;}
	public String getInfoString() {return infoString;}

	
	
	public void setContactMechType(ContactMechType contactMechType) {
		this.contactMechType = contactMechType;
	}
	public void setInfoString(String infoString) {
		this.infoString = infoString;
	}
}
